package com.bhald.CJ.Common;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.RelativeLayout.LayoutParams;

public class CommonaddView {

	public static LinearLayout addView(LinearLayout linear, Context context,
			int id) {
		View view = null;
		linear.removeAllViews();
		view = LayoutInflater.from(context).inflate(id, null);
		linear.addView(view, LayoutParams.MATCH_PARENT,
				LayoutParams.MATCH_PARENT);
		return linear;
	}
}
